package com.rh.controller;

import org.springframework.web.bind.annotation.CrossOrigin;
import org.springframework.web.bind.annotation.RequestMapping;
import org.springframework.web.bind.annotation.RestController;

import javax.servlet.http.HttpServletRequest;

@RestController
@CrossOrigin
public class TestController {
    @RequestMapping("test01")
    public String test01(HttpServletRequest request){
        System.out.println("请求方式:"+request.getMethod());
        System.out.println("请求参数:"+request.getParameterNames());
        return "OK";
    }
}
